#!/usr/bin/env python
PACKAGE = "data_exchange"
 
from dynamic_reconfigure.parameter_generator_catkin import *
 
gen = ParameterGenerator()

gen.add("linear_speed", double_t, 0, "m/s", 50, 0, 100)
gen.add("angular_velocity", double_t, 0, "rad/s", .5, 0, 1)
gen.add("is_start", bool_t, 0, "A Boolean parameter", True)

# gen.add("int_param", int_t, 0, "An Integer parameter", 50, 0, 100)
# gen.add("double_param", double_t, 0, "A Double parameter", .5, 0, 1)
# gen.add("str_param", str_t, 0, "A String parameter", "Hello World")
# gen.add("bool_param", bool_t, 0, "A Boolean parameter", True)
 
# size_enum = gen.enum([gen.const("Small", int_t, 0, "A small constant"),
#                       gen.const("Medium", int_t, 1, "A medium constant"),
#                       gen.const("Large", int_t, 2, "A large constant"),
#                       gen.const("Extralarge", int_t, 3, "A extra large constant")],
#                       "An enum to set size")
# gen.add("size", int_t, 0, "A size parameter which is edited via an enum", 1, 0, 3, edit_method=size_enum)
 
exit(gen.generate(PACKAGE, "data_exchange", "tutorials"))